<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CUdpIoClient类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="class_c_udp_io_client-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CUdpIoClient类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>udp连接发送类  
 <a href="class_c_udp_io_client.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2537f3d1a10b449d2e1ea971ca364462"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a2537f3d1a10b449d2e1ea971ca364462">CUdpIoClient</a> (bool isWriteLog=false)</td></tr>
<tr class="memdesc:a2537f3d1a10b449d2e1ea971ca364462"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造udp io对象  <a href="class_c_udp_io_client.html#a2537f3d1a10b449d2e1ea971ca364462">更多...</a><br /></td></tr>
<tr class="separator:a2537f3d1a10b449d2e1ea971ca364462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefc6274bda975715b71eefbb0b7ad003"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#aefc6274bda975715b71eefbb0b7ad003">~CUdpIoClient</a> ()</td></tr>
<tr class="memdesc:aefc6274bda975715b71eefbb0b7ad003"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁udp io对象  <a href="class_c_udp_io_client.html#aefc6274bda975715b71eefbb0b7ad003">更多...</a><br /></td></tr>
<tr class="separator:aefc6274bda975715b71eefbb0b7ad003"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0a173136d4e71786efd3fb1e7f97b84"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#ad0a173136d4e71786efd3fb1e7f97b84">Init</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, bool isServer=false)</td></tr>
<tr class="memdesc:ad0a173136d4e71786efd3fb1e7f97b84"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化套接字与服务类设备进行绑定  <a href="class_c_udp_io_client.html#ad0a173136d4e71786efd3fb1e7f97b84">更多...</a><br /></td></tr>
<tr class="separator:ad0a173136d4e71786efd3fb1e7f97b84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2da07449e58917750582771456ea5db6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a2da07449e58917750582771456ea5db6">Run</a> ()</td></tr>
<tr class="memdesc:a2da07449e58917750582771456ea5db6"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_c_udp_io_client.html#a2da07449e58917750582771456ea5db6">更多...</a><br /></td></tr>
<tr class="separator:a2da07449e58917750582771456ea5db6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46b4e76c70ef32897fa54504f61350df"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a46b4e76c70ef32897fa54504f61350df">Run_One</a> ()</td></tr>
<tr class="memdesc:a46b4e76c70ef32897fa54504f61350df"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务一次  <a href="class_c_udp_io_client.html#a46b4e76c70ef32897fa54504f61350df">更多...</a><br /></td></tr>
<tr class="separator:a46b4e76c70ef32897fa54504f61350df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ff270a2d81fd97119b8a6e3362cd066"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a3ff270a2d81fd97119b8a6e3362cd066">NotifyStop</a> ()</td></tr>
<tr class="memdesc:a3ff270a2d81fd97119b8a6e3362cd066"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止  <a href="class_c_udp_io_client.html#a3ff270a2d81fd97119b8a6e3362cd066">更多...</a><br /></td></tr>
<tr class="separator:a3ff270a2d81fd97119b8a6e3362cd066"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5c74cf31c8e1d27aec5449d8942e747"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#ab5c74cf31c8e1d27aec5449d8942e747">IsStop</a> () const</td></tr>
<tr class="memdesc:ab5c74cf31c8e1d27aec5449d8942e747"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断服务是否已经停止  <a href="class_c_udp_io_client.html#ab5c74cf31c8e1d27aec5449d8942e747">更多...</a><br /></td></tr>
<tr class="separator:ab5c74cf31c8e1d27aec5449d8942e747"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ca3ce1b78a58ba18a64dba29bca3c8c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a5ca3ce1b78a58ba18a64dba29bca3c8c">WaitServerStop</a> ()</td></tr>
<tr class="memdesc:a5ca3ce1b78a58ba18a64dba29bca3c8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止并等待  <a href="class_c_udp_io_client.html#a5ca3ce1b78a58ba18a64dba29bca3c8c">更多...</a><br /></td></tr>
<tr class="separator:a5ca3ce1b78a58ba18a64dba29bca3c8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad895a6e4cacb163bdc64916e96cedb85"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_basic_service.html">CBasicService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#ad895a6e4cacb163bdc64916e96cedb85">GetUdpServicePtr</a> ()</td></tr>
<tr class="memdesc:ad895a6e4cacb163bdc64916e96cedb85"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取底层服务类  <a href="class_c_udp_io_client.html#ad895a6e4cacb163bdc64916e96cedb85">更多...</a><br /></td></tr>
<tr class="separator:ad895a6e4cacb163bdc64916e96cedb85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个接收连接请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待连接的套接字类 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注</dt><dd>不管投递的成功与否，都会经过回调函数返回给上层调用 </dd></dl>
</div></td></tr>
<tr class="memitem:a4919fd340e3ae52db95b3cb118a3fa6f"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:a4919fd340e3ae52db95b3cb118a3fa6f"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a4919fd340e3ae52db95b3cb118a3fa6f">AsyncConnect</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, Func func)</td></tr>
<tr class="separator:a4919fd340e3ae52db95b3cb118a3fa6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accf83768e36041acd016f70e55fabbc7"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:accf83768e36041acd016f70e55fabbc7"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#accf83768e36041acd016f70e55fabbc7">AsyncConnect</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, Func func, void *invoker)</td></tr>
<tr class="separator:accf83768e36041acd016f70e55fabbc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个接收请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字类 </td></tr>
    <tr><td class="paramname">buff</td><td>接收缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ad20305e6432d6fd5bf0be06e26015570"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ad20305e6432d6fd5bf0be06e26015570"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#ad20305e6432d6fd5bf0be06e26015570">AsyncRead</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, Func func)</td></tr>
<tr class="separator:ad20305e6432d6fd5bf0be06e26015570"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89f366a9362dcb1bdf06e8c21ec064f9"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:a89f366a9362dcb1bdf06e8c21ec064f9"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a89f366a9362dcb1bdf06e8c21ec064f9">AsyncRead</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, Func func, void *invoker)</td></tr>
<tr class="separator:a89f366a9362dcb1bdf06e8c21ec064f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个写请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字类 </td></tr>
    <tr><td class="paramname">buff</td><td>发送缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ac6b2c4ea6302ac57499d52ab6caa6188"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ac6b2c4ea6302ac57499d52ab6caa6188"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#ac6b2c4ea6302ac57499d52ab6caa6188">AsyncSend</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, Func func)</td></tr>
<tr class="separator:ac6b2c4ea6302ac57499d52ab6caa6188"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3554d62f3995d7fbb1cdb132bf23349"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:af3554d62f3995d7fbb1cdb132bf23349"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#af3554d62f3995d7fbb1cdb132bf23349">AsyncSend</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, Func func, void *invoker)</td></tr>
<tr class="separator:af3554d62f3995d7fbb1cdb132bf23349"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个中断请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ab3c7e71d81a80ca50cc1f65feb61bcec"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ab3c7e71d81a80ca50cc1f65feb61bcec"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#ab3c7e71d81a80ca50cc1f65feb61bcec">Post</a> (Func func)</td></tr>
<tr class="separator:ab3c7e71d81a80ca50cc1f65feb61bcec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01dc1799ddc029dd2ea8b7c9be7110fd"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:a01dc1799ddc029dd2ea8b7c9be7110fd"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a01dc1799ddc029dd2ea8b7c9be7110fd">Post</a> (Func func, void *invoker)</td></tr>
<tr class="separator:a01dc1799ddc029dd2ea8b7c9be7110fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a1e315d3dd521f59444f6a44efa51657e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_udp_client.html">CUdpClient</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#a1e315d3dd521f59444f6a44efa51657e">_service</a></td></tr>
<tr class="separator:a1e315d3dd521f59444f6a44efa51657e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:aafa046f3bc9f1442d2187bcdac47dcf0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_client.html#aafa046f3bc9f1442d2187bcdac47dcf0">delete_class_copy_operator</a> (<a class="el" href="class_c_udp_io_client.html">CUdpIoClient</a>)</td></tr>
<tr class="separator:aafa046f3bc9f1442d2187bcdac47dcf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>udp连接发送类 </p>
<dl class="section remark"><dt>备注</dt><dd>在使用io功能之前需先投递一个连接请求 </dd></dl>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00012">12</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a2537f3d1a10b449d2e1ea971ca364462"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2537f3d1a10b449d2e1ea971ca364462">&#9670;&nbsp;</a></span>CUdpIoClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpIoClient::CUdpIoClient </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteLog</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造udp io对象 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">isWriteLog</td><td>是否打印内部调试日志 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<a id="aefc6274bda975715b71eefbb0b7ad003"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefc6274bda975715b71eefbb0b7ad003">&#9670;&nbsp;</a></span>~CUdpIoClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpIoClient::~CUdpIoClient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>销毁udp io对象 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a4919fd340e3ae52db95b3cb118a3fa6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4919fd340e3ae52db95b3cb118a3fa6f">&#9670;&nbsp;</a></span>AsyncConnect() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::AsyncConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00048">48</a> 行定义.</p>

</div>
</div>
<a id="accf83768e36041acd016f70e55fabbc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accf83768e36041acd016f70e55fabbc7">&#9670;&nbsp;</a></span>AsyncConnect() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::AsyncConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00052">52</a> 行定义.</p>

</div>
</div>
<a id="ad20305e6432d6fd5bf0be06e26015570"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad20305e6432d6fd5bf0be06e26015570">&#9670;&nbsp;</a></span>AsyncRead() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00066">66</a> 行定义.</p>

</div>
</div>
<a id="a89f366a9362dcb1bdf06e8c21ec064f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89f366a9362dcb1bdf06e8c21ec064f9">&#9670;&nbsp;</a></span>AsyncRead() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00070">70</a> 行定义.</p>

</div>
</div>
<a id="ac6b2c4ea6302ac57499d52ab6caa6188"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6b2c4ea6302ac57499d52ab6caa6188">&#9670;&nbsp;</a></span>AsyncSend() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00084">84</a> 行定义.</p>

</div>
</div>
<a id="af3554d62f3995d7fbb1cdb132bf23349"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3554d62f3995d7fbb1cdb132bf23349">&#9670;&nbsp;</a></span>AsyncSend() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00088">88</a> 行定义.</p>

</div>
</div>
<a id="aafa046f3bc9f1442d2187bcdac47dcf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafa046f3bc9f1442d2187bcdac47dcf0">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpIoClient::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_client.html">CUdpIoClient</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad895a6e4cacb163bdc64916e96cedb85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad895a6e4cacb163bdc64916e96cedb85">&#9670;&nbsp;</a></span>GetUdpServicePtr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_basic_service.html">CBasicService</a>* CUdpIoClient::GetUdpServicePtr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取底层服务类 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00136">136</a> 行定义.</p>

</div>
</div>
<a id="ad0a173136d4e71786efd3fb1e7f97b84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0a173136d4e71786efd3fb1e7f97b84">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> CUdpIoClient::Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isServer</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化套接字与服务类设备进行绑定 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待绑定的套接字类 </td></tr>
    <tr><td class="paramname">isServer</td><td>初始化类型，必须使用默认值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回相应的错误码 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>内部会自动为socket绑定一个端口和地址，若通过SetAddr/SetPort函数设置 则绑定地址、端口会取设定的值 </dd></dl>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00035">35</a> 行定义.</p>

</div>
</div>
<a id="ab5c74cf31c8e1d27aec5449d8942e747"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5c74cf31c8e1d27aec5449d8942e747">&#9670;&nbsp;</a></span>IsStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpIoClient::IsStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>判断服务是否已经停止 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00126">126</a> 行定义.</p>

</div>
</div>
<a id="a3ff270a2d81fd97119b8a6e3362cd066"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ff270a2d81fd97119b8a6e3362cd066">&#9670;&nbsp;</a></span>NotifyStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::NotifyStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00121">121</a> 行定义.</p>

</div>
</div>
<a id="ab3c7e71d81a80ca50cc1f65feb61bcec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3c7e71d81a80ca50cc1f65feb61bcec">&#9670;&nbsp;</a></span>Post() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::Post </td>
          <td>(</td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00101">101</a> 行定义.</p>

</div>
</div>
<a id="a01dc1799ddc029dd2ea8b7c9be7110fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01dc1799ddc029dd2ea8b7c9be7110fd">&#9670;&nbsp;</a></span>Post() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::Post </td>
          <td>(</td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00105">105</a> 行定义.</p>

</div>
</div>
<a id="a2da07449e58917750582771456ea5db6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2da07449e58917750582771456ea5db6">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpIoClient::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00111">111</a> 行定义.</p>

</div>
</div>
<a id="a46b4e76c70ef32897fa54504f61350df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46b4e76c70ef32897fa54504f61350df">&#9670;&nbsp;</a></span>Run_One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpIoClient::Run_One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务一次 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00116">116</a> 行定义.</p>

</div>
</div>
<a id="a5ca3ce1b78a58ba18a64dba29bca3c8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ca3ce1b78a58ba18a64dba29bca3c8c">&#9670;&nbsp;</a></span>WaitServerStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoClient::WaitServerStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止并等待 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00131">131</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a1e315d3dd521f59444f6a44efa51657e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e315d3dd521f59444f6a44efa51657e">&#9670;&nbsp;</a></span>_service</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_udp_client.html">CUdpClient</a>&gt; CUdpIoClient::_service</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a> 第 <a class="el" href="_udp_io_client_8h_source.html#l00141">141</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/socket/<a class="el" href="_udp_io_client_8h_source.html">UdpIoClient.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
